<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">商品订单列表</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="get" action="{:url('ShopOrder/index')}">
        订单号：
        <input type="text" class="form-control" name="shop_order_sn" style="width: 200px;" value="{:input('request.shop_order_sn','')}" placeholder="请输入订单号"> &nbsp; &nbsp;
        商品分类：
        <select class="form-control" name="shop_id" style="width:140px;">
            <option value="-1">全部</option>
            <foreach name="shop_category" item="vo" key="key">
                <option value="{$key}" <eq name="$key" value="$shop_id">selected</eq>>{$vo}</option>
            </foreach>
        </select>
        &nbsp;&nbsp;&nbsp;&nbsp;订单状态：
        <select class="form-control" name="status_id" style="width:140px;">
            <option value="-1">全部</option>
            <foreach name="status" item="vo" key="key">
                <option value="{$key}" <eq name="$key" value="$status_id">selected</eq>>{$vo}</option>
            </foreach>
        </select>
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('ShopOrder/index')}">清空</a>
    </form>
    <form class="js-ajax-form" action="" method="post">
        <div style="white-space: nowrap; overflow: hidden; overflow-x: scroll; -webkit-backface-visibility: hidden; -webkit-overflow-scrolling: touch;">
            <table class="table table-hover table-bordered table-list">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>商品分类</th>
                    <th>订单号</th>
                    <th>状态</th>
                    <th>商品标题</th>
                    <th>封面图</th>
                    <th>规格属性名称</th>
                    <th>商品价格</th>
                    <th>购买数量</th>
                    <th>总价格</th>
                    <th>收货人</th>
                    <th>联系方式</th>
                    <th>收货地址</th>
                    <th>备注</th>
                    <th>发货时间</th>
                    <th>完成时间</th>
                    <th>下单时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <volist name="list" id="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.shop_id}</td>
                        <td>{$vo.shop_order_sn}</td>
                        <td>{$vo.status1}</td>
                        <td>{$vo.title}</td>
                        <td>
                            <notempty name="vo.thumbnail">
                                <a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo.thumbnail)}');">
                                    <i class="fa fa-photo fa-fw"></i>
                                </a>
                                <else/>
                                <i class="fa fa-close fa-fw"></i>
                            </notempty>
                        </td>
                        <td>{$vo.specs_attr}</td>
                        <td>{$vo.need_coin}</td>
                        <td>{$vo.num}</td>
                        <td>{$vo.need_count_coin}</td>
                        <td>{$vo.name}</td>
                        <td>{$vo.mobile}</td>
                        <td>{$vo.province} {$vo.city} {$vo.area}<br>{$vo.address}</td>
                        <td>{$vo.remarks}</td>
                        <td>{$vo['deliver_time']}</td>
                        <td>{$vo['finish_time']}</td>
                        <td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
                        <td>
                            <if condition="$vo['status'] eq $delivers">
                                <a class="btn btn-xs btn-primary js-ajax-dialog-btn" data-msg="您确定要发货吗？" href="{:url('ShopOrder/deliver',array('id'=>$vo['id']))}">发货</a>
                            </if>
                        </td>
                    </tr>
                </volist>
            </table>
        </div>
        <!--分页-->
        <ul class="pagination">{$page|default=''}</ul>
    </form>
    
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>

    function reloadPage(win) {
        win.location.reload();
    }
</script>
</body>
</html>